﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.ComponentModel
{
    /// <summary>
    /// 应用程序生成周期定义
    /// </summary>
    public interface IApp
    {
        /// <summary>
        /// 所有实体元数据初始化完毕，包括实体元数据之间的关系
        /// </summary>
        event EventHandler AllPluginsIntialized;

        /// <summary>
        /// 模块定义
        /// </summary>
        event EventHandler ModuleOperations;

        /// <summary>
        /// 模块的定义完成
        /// </summary>
        event EventHandler ModuleOperationsCompleted;

        /// <summary>
        /// 所有初始化工作完成
        /// </summary>
        event EventHandler AppMetaCompleted;

        /// <summary>
        /// 主过程开始前事件
        /// </summary>
        event EventHandler MainProcessStarting;

        /// <summary>
        /// AppStartup 完毕
        /// </summary>
        event EventHandler StartupCompleted;

        /// <summary>
        /// 应用程序完全退出
        /// </summary>
        event EventHandler Exit;
    }
}
